<?php
    session_start();

    $title = $_POST["Title"];
    $content = $_POST["Content"];


    $sql = "INSERT INTO `article` 
    (`Title`,`Content`)
    VALUES ('$title','$content')";

    echo $sql;

    $conn =  new mysqli("localhost",'root','',"mybolg");
    $conn -> query($sql);
    if($conn->error) echo $conn->error;

    $url = "news.php";
    Header("Location: $url");
    
?> 